package com.cow.support.dao;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.cow.support.entity.Roleinfo;

public interface RoleDAO extends JpaRepository<Roleinfo, Serializable>{
	@Query("SELECT d FROM Roleinfo d,Userrole ur WHERE d.roleid = ur.roleid AND ur.userid = ?1")
	public List<Roleinfo> getUserRole(Integer userID);
}
